﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using static System.Math;//静态引用 

namespace Vs2015新功能
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            //索引初始化器
            System.Collections.Generic.Dictionary<int, string> a = new Dictionary<int, string>() {[1] = "abc",[2] = "123" };



            //out 参数用法

            Console.WriteLine(Abs(-12121));
        }

 
        public string aa { get; set; } = "aaa";

        public string bb => aa + "aa";
        public string abc() => aa;
    }
}
